-- GENERATED SPELL FOR [Veteran Coldmine Guard] --


function spell0_13535(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13535', 2266, 1)
end

function spell1_13535(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13535', 627, 1)
end

function Sorts_13535(pUnit, Event)
local choix_sorts_13535 = math.random(0, 1)
if choix_sorts_13535 == 0 then
pUnit:RegisterEvent('spell0_13535', 1, 1)
end
if choix_sorts_13535 == 1 then
pUnit:RegisterEvent('spell1_13535', 1, 1)
end
end

function mob13535_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13535', math.random(1500, 3000), 1)
end

function mob13535_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13535_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13535_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13535, 1, 'mob13535_Action')
RegisterUnitEvent(13535, 2, 'mob13535_Leave')
RegisterUnitEvent(13535, 3, 'mob13535_Kill')
RegisterUnitEvent(13535, 4, 'mob13535_Die')
